class Student{
    name:string;
    age:number;
    constructor(name:string,age:number){
        this.name = name;
        this.age = age
    }
    getName():void{
        console.log(this.name);   
    }
}
var s:Student = new Student("dai",18);
s.getName();